Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Bash by tinti ( 13 years ago )
#!/bin/sh
hosts=( 'your.host.tld' )
user='username'
pass_enc='password using base64'
lastipfile='/tmp/lastip'
pass=`echo $pass_enc | base64 -d`
myip=`dig a myip.opendns.com @resolver1.opendns.com +short`
lastip=`cat $lastipfile`
if [ "$myip" != "$lastip" ]; then
for host in ${hosts[@]};
do
URL="https://dyndns.dns-stock.com/?hostname=$host&username;=$user&password;=$pass&myip;=$myip"
wget -O /dev/null --quiet --no-check-certificate $URL
echo $myip > $lastipfile
touch $lastipfile
done
else
echo "IP did not change!" > /dev/null
fi
Revise this Paste